package com.example.vue.dashboard.service.impl;

import com.example.vue.comm.domain.ResultData;
import com.example.vue.dashboard.mapper.DashboardMapper;
import com.example.vue.dashboard.service.DashboardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @author zhouxl
 * @DATE 2020/12/21
 * @descriptoin
 */
@Component
public class DashboardServiceImpl implements DashboardService {

    @Autowired
    private DashboardMapper dashboardMapper;

    @Override
    public Object queryDashboardInfo(Map<String, Object> params) {
        ResultData data = ResultData.success(null);
        List<Map<String, Object>> mapList = dashboardMapper.queryDashboardInfo(params);
        data.setData(mapList);
        return data;
    }
}
